﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace YLTest
{
	public partial class Form1 : Form
	{
		#region Dll declarations

		internal const string YLHOOK = @"Yealink.dll";

		[DllImport(YLHOOK, EntryPoint = "initInstance", CallingConvention = CallingConvention.StdCall)]
		public static extern bool initInstance();

		#endregion Dll declarations

		public Form1()
		{
			InitializeComponent();
		}

		private void button1_Click(object sender, EventArgs e)
		{
			initInstance();
		}
	}
}